package one_class_design.four_work;

/**
 * @author 北巷_东坡
 * @date 2022/9/18 17:04
 * @computer 10741
 */
public class run_four {
    public static void main(String[] args) {
        geometry[] tuxing = new geometry[29];
        for (int i = 0; i < tuxing.length; i++) {
            if(i%2==1)
                tuxing[i]=new Rect(16+i,68);
            else if(i%2==0)
                tuxing[i]=new Citcle(10+i);
        }
        totalArrea computer=new totalArrea();
        computer.setTuxing(tuxing);
        System.out.printf("各种图形面积之和：\n%f",computer.computerTotalArea());
    }
}
